package cn.xuguowen.user.designPatten.strategy.heima;

/**
 * ClassName: SalesMan
 * Package: cn.xuguowen.user.designPatten.strategy.heima
 * Description:
 * 环境类——销售员，将销售策略告知客户
 * @Author 徐国文
 * @Create 2023/4/28 18:14
 * @Version 1.0
 */
public class SalesMan {

    private SaleStrategy saleStrategy;

    public void setStrategy(SaleStrategy saleStrategy) {
        this.saleStrategy = saleStrategy;
    }

    public SalesMan(SaleStrategy saleStrategy) {
        this.saleStrategy = saleStrategy;
    }

    public SalesMan() {
    }

    public void saleStrategy() {
        saleStrategy.show();
    }
}
